PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-04-06 10:19:13.348779+00:00 (UTC)
In US/Central Time, this is 2024-04-06 05:19:13.348779-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../_images/298c3793156f31abef2838b3b0da92b59e5c701faaef6d81e17cfb38fdb5f958.png
We are just generating a random time serie here.
../_images/73c4b8efc334963213d1ba80576ac4616a6d3316ceb1d404f9de31f570104a20.png
../_images/cd84540b8be0b315f84836824b96303d539ac462fe4fc6a9e63f6ec9f6564296.png